package com.tanhua.manage.controller;

import com.tanhua.manage.service.UserService;
import com.tanhua.manage.vo.Pager;
import com.tanhua.manage.vo.UserVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/manage/users")
public class UsersController {

    @Autowired
    private UserService userService;


    /**
     * 用户数据翻页
     */
//    @GetMapping
//    public Pager<UserVo> queryByPage(@RequestParam(name = "page", defaultValue = "1") Integer page,
//                                    @RequestParam(name = "pagesize", defaultValue = "10") Integer pageSize,
//                                    @RequestParam(name = "id", required = false) Long id,
//                                    @RequestParam(name = "nickname", required = false) String nickname,
//                                    @RequestParam(name = "city", required = false) String city) {
//        return this.userService.queryByPage(page, pageSize, id, nickname, city);
//    }
}